package com.ukee.birthday.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ukee.birthday.common.utils.R;
import com.ukee.birthday.modules.entity.SysUserTokenEntity;

public interface SysUserTokenService extends IService<SysUserTokenEntity> {

    /**
     * 生成token
     * @param userId 用户id
     * @param type 1管理后台 2小程序
     * @return
     */
    R createToken(long userId,int type);

    /**
     * 退出
     * @param userId
     */
    void logout(long userId);
}
